<?php
require_once('config.php');
$con1 = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);  	
$username = $_POST["username"];
$query1 = "SELECT * FROM student WHERE username = '$username'";
$result1 = mysqli_query($con1, $query1);   
$find = mysqli_num_rows($result1);
echo $find ;
 
?>